<html>
    <head>
        <title>发表帖子</title>
        <link rel="stylesheet" href="/static/css/browse.css" type="text/css" />
        <script type="text/javascript" src="/static/js/jquery-1.10.2.js"></script>	
    </head>
    <body>
        <div class="wrapper">
            <div id="addArticle">
                <div class="head"> <span>发布帖子</span> </div>

                <form method="POST" action="/circle/topic/add/{{bang.id}}/">
                    {% csrf_token %}

                    <div class="p-line">
                        <label class="title"><span style="color:red;">*</span>主题:</label>
                        {{form.title}}
                        {{form.title.errors}}
                    </div>

                    <div id="imgPreview"></div>
                    <div id="hidevar"></div>
                    <div class="p-line">
                        <label class="title"><span style="color:red;">*</span>上传图片:</label>
                        <iframe src="/image/upload/" scrolling="no" style="height:30px;" frameborder="0"></iframe>
                    </div>

                    <div class="p-line">
                        <label class="title"><span style="color:red;">*</span>内容:</label>
                        {{form.content}}
                        {{form.content.errors}}
                    </div>

                    <input class="btnSubmit"  type="submit" value="发表帖子" />
                </form>

            </div>
        </div>

    </body>
</html>

